package com.example.qzdemo11;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class MyReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        //获取广播的名字
        String action=intent.getAction();
        Log.d("lfy","收到广播......action="+action);
    }
}
